<div>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>购买优惠券</h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-primary btn-sm" v-on:click="_closeBuyGold()">
                            <i class="fa fa-times"></i> 返回
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label text-right">优惠券</label>
                        <div class="col-sm-8">
                            <input v-model="buyGoldInfo.couponName" type="text" disabled placeholder="优惠券"
                                class="form-control">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label text-right">库存</label>
                        <div class="col-sm-8">
                            <input v-model="buyGoldInfo.couponStock" type="text" disabled placeholder="库存"
                                class="form-control">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label text-right">优惠券价格</label>
                        <div class="col-sm-8">
                            <input v-model="buyGoldInfo.buyPrice" type="text" disabled placeholder="优惠券价格"
                                class="form-control">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label text-right">优惠券数量</label>
                        <div class="col-sm-8">
                            <input v-model="buyGoldInfo.goldCount" type="number" @change="_changeGoldCount()"
                                placeholder="必填，请填写购买优惠券数量" class="form-control">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label text-right">支付金额</label>
                        <div class="col-sm-8">
                            <input v-model="buyGoldInfo.goldMoney" type="text" disabled placeholder="支付金额"
                                class="form-control">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-lg-12">
            <button class="btn btn-primary float-right" type="button" v-on:click="_toBuyGold()">
                <i class="fa fa-check"></i>&nbsp;购买
            </button>
        </div>
    </div>
    <div id="buyGoldPayModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
        aria-hidden="true">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <div class="modal-body">
                    <h3 class="m-t-none m-b ">扫码支付</h3>
                    <div class="ibox-content">
                        <div class="form-group row">
                            <label class="col-sm-2 col-form-label">支付二维码</label>
                            <div class="col-sm-4" style="position: relative;">
                                <img v-on:click="_changeAppType()" v-show="buyGoldInfo.showRefresh"
                                    src="/img/qrcode-refresh.png" style="position: absolute;top: 0;left: 15px;"
                                    width="200" height="200" alt="">
                                <div id="qrcode" style="width:200px; height:200px; "></div>
                            </div>
                            <div class="col-sm-6">
                                <span>请用微信扫码支付</span>
                            </div>
                        </div>
                        <div class="ibox-content">
                            <button class="btn btn-primary float-right" type="button" v-on:click="_finishScanQrCode()">
                                <i class="fa fa-check"></i>&nbsp;支付完成
                            </button>
                            <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                                data-dismiss="modal">
                                <i class="fa fa-close"></i>&nbsp;取消
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>